﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FrmExamUserTemplet.aspx.cs" Inherits="ExamV5.PaperInfo.FrmExamUserTemplet" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <meta http-equiv="Content-Language" content="zh-cn" />
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
	
    <link href="../Image/STYLE.CSS" rel="stylesheet" type="text/css" />
	<script language="JavaScript" charset="gb2312" src="../Image/calendar.js"></script>
    <script type="text/javascript" language="javascript">
        function SubmitKeyClick(button) {
            if (event.keyCode == 13) {
                event.keyCode = 9;
                event.returnValue = false;
                document.all[button].click();
            }
        }

        function EditExamUserTemplet(strID) {
            var strURL = "FrmEditUserTemplet.aspx?ID=" + strID + "";

            var iWidth = 650;
            var iHeight = 600;
            var iTop = (window.screen.availHeight - 30 - iHeight) / 2;
            var iLeft = (window.screen.availWidth - 10 - iWidth) / 2;
            window.open(strURL, "编辑抽考人员模板详细信息", "height=" + iHeight + ", width=" + iWidth + ", top=" + iTop + ", left=" + iLeft + ",toolbar=no,menubar=no,scrollbars=yes,resizable=no, location=no,status=no");
           
        }
		</script>
</head>
<body>
    <form id="Form1" runat="server">
     <asp:ScriptManager ID="SM" runat="server">
                        </asp:ScriptManager>
                        <asp:UpdatePanel ID="UPPart" runat="server">
                           <ContentTemplate>

                           <table cellSpacing="0" cellPadding="0" border="0">
	    <tr>
		   <td width=37><img src="../image/BobyTip.gif" border="0" /></td>
           <td>当前位置：<a href='../FrmMain.aspx'>系统首页</a> >  考试信息管理 > 人员抽考模板</td>
	    </tr>
        </table>
        <table cellSpacing="0" cellPadding="0" border="0" width="100%">
        <tr>
           <td  height=51  background="../image/BobyModNameBG.gif">
                    <table cellSpacing="0" cellPadding="0" border="0">
                        <tr>
                            <td width=5></td>
                            <td width="105"  background="../image/HeadTitleAA.gif" height="41" align="center"><a href='RndAddPaper.aspx'  onfocus='this.blur();'><img src="../image/MenuICO/Menu46.gif" border="0" style='POSITION:relative;TOP:3px'> <font color="#ffffff"><b>随机组卷</b></font></a></td>
                            <td width="105"  background="../image/HeadTitleBA.gif" height="41" align="center"><a href='UserAddPaper.aspx'  onfocus='this.blur();'><img src="../image/MenuICO/Choose12.gif" border="0" style='POSITION:relative;TOP:3px'> <font color="#ffffff"><b>人工组卷</b></font></a></td>
                            <td width="105"  background="../image/HeadTitleCA.gif" height="41" align="center"><a href='FrmManagPaperList.aspx'  onfocus='this.blur();'><img src="../image/MenuICO/Menu14.gif" border="0" style='POSITION:relative;TOP:3px'> <font color="#ffffff"><b>试卷管理</b></font></a></td>
                            <td width="133"  background="../image/HeadTitleDB.gif" height="41" align="center"><a href='FrmPaperTemplet.aspx'  onfocus='this.blur();'><img src="../image/MenuICO/Menu21.gif" border="0" style='POSITION:relative;TOP:3px'> <font color="#ffffff"><b>试卷参数模板</b></font></a></td>
                            <td width="133"  background="../image/HeadLocalAB.gif" height="41" align="center"><a href='FrmExamUserTemplet.aspx'  onfocus='this.blur();'><img src="../image/MenuICO/Choose61.gif" border="0" style='POSITION:relative;TOP:3px'> <font color="#ffffff"><b>人员抽考模板</b></font></a></td>
                            
                        </tr>
                   </table>
            </td>
         </tr>
         <tr>
               <td  height=33  background="../image/QueryBG.gif" align="right">
                        <table cellSpacing="0" cellPadding="0" border="0">
                            <tr>
                                <td>
                                    <!--查询区-->
                                    <asp:dropdownlist id="DDLQuery" runat="server" style="height:26px;">
								<asp:ListItem Value="TemplateName">模板名称</asp:ListItem>
							    <asp:ListItem Value="InputMan">创建人员</asp:ListItem>
							</asp:dropdownlist></td><td><asp:TextBox ID="txtQuery" runat="server" CssClass="text"  Height="23" Width="150"></asp:TextBox></td>
                                       <td> <asp:Button ID="butQuery" runat="server"  Text="查  询" style='POSITION:relative;TOP:-2px' CssClass="but2G" 
                                            onclick="butQuery_Click"/> <asp:Button ID="butAdd" runat="server" Text="新  增"  style='POSITION:relative;TOP:-2px' CssClass="but2R"  OnClientClick="javascript:EditExamUserTemplet('0');" />&nbsp;</td>
                                       
                                   </tr>
                        </table>     
            </td>
         </tr>
         <tr>
                <td>
                                    <!--数据列表区-->
                                    <asp:GridView ID="DataGridInfo" runat="server" AllowPaging="True"  
                                            onpageindexchanging="DataGridInfo_PageIndexChanging" 
                                            AutoGenerateColumns="False" CellPadding="10" BorderWidth="1px" Width="100%" 
                                            CssClass="tableStyle" BackColor="White" PageSize="10" 
                                            AllowSorting="True" onsorting="DataGridInfo_Sorting"  
                                            onrowdatabound="DataGridInfo_RowDataBound" 
                                            DataKeyNames="ID,TemplateName" >
							            <HeaderStyle Font-Bold="True" HorizontalAlign="Center" CssClass="tabth_bg" ForeColor="#143F61"></HeaderStyle>
							            <FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
                                            <Columns>
                                                <asp:TemplateField HeaderText="选中">
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="CheckBoxSelect" runat="server" />
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="30px" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="TemplateName" HeaderText="模板名称"   SortExpression="TemplateName">
                                                </asp:BoundField>
                                               
                                                <asp:BoundField DataField="JoinUserCount" HeaderText="抽考人数"  SortExpression="JoinUserCount" >
                                                <HeaderStyle Width="80px" />
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                
                                                 <asp:BoundField DataField="InputUser" HeaderText="编辑人员"  SortExpression="InputUser" >
                                                <HeaderStyle Width="80px" />
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                 <asp:BoundField DataField="InputTime" HeaderText="编辑时间"  SortExpression="InputTime" >
                                                <HeaderStyle Width="135px" />
                                                </asp:BoundField>
                                                <asp:TemplateField HeaderText="操作">
                                                    <ItemTemplate>
                                                        <asp:Label id="labEdit" runat="server" Text="修改"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                    <HeaderStyle Width="35px" />
                                                </asp:TemplateField>
                                                
                                            </Columns>
                                        <PagerStyle HorizontalAlign="Right" />
           
                                     </asp:GridView>
                                    </td>
                                </tr>
                                
                                <tr height="25">
                                    <td><br />
                                    <!--分页区-->
                                        <table border="0" width="100%" cellpadding="0" cellspacing="0">
										<tr>
											<td align="left"><asp:linkbutton id="LBSelect" runat="server" 
                                                    onclick="LBSelect_Click">选中当页</asp:linkbutton>&nbsp;<asp:linkbutton 
                                                    id="LBDel" runat="server" onclick="LBDel_Click">删除所选</asp:linkbutton>&nbsp;<asp:linkbutton 
                                                    id="LBDelAll" runat="server" onclick="LBDelAll_Click">清除所有</asp:linkbutton>&nbsp;&nbsp;</td>
											<td align="right"><asp:label id="labRescordCount" runat="server">总共&nbsp;<font color='#0000C0'><B>0</B></font>&nbsp;条记录&nbsp;<font color='#0000C0'><B>1/1</B></font>&nbsp;页&nbsp;</asp:label>
												<asp:LinkButton id="LBFirstPage" runat="server" onclick="LBFirstPage_Click">第一页</asp:LinkButton>&nbsp;
												<asp:LinkButton id="LBPrevPage" runat="server" onclick="LBPrevPage_Click">上一页</asp:LinkButton>&nbsp;
												<asp:LinkButton id="LBNextPage" runat="server" onclick="LBNextPage_Click">下一页</asp:LinkButton>&nbsp;
												<asp:LinkButton id="LBLastPage" runat="server" onclick="LBLastPage_Click">最后页</asp:LinkButton>&nbsp;</td>
										</tr>
									    </table>
                                    </td>
                                </tr>
                                </table>
					</td>
					
             </ContentTemplate>
       </asp:UpdatePanel>
    </form>
   
</body>
</html>
